"use strict";
cc._RF.push(module, '0b187rvovFLJ7q4qAUWMqzG', 'LoginPanel');
// Script/View/Login/LoginPanel.js

"use strict";

var LoginPanel = cc.Class({
    name: 'LoginPanel',

    ctor: function ctor() {
        this.viewName = "";
        this.panel = null;
    },

    awake: function awake() {
        console.log(this.viewName);
        //ViewMgr.showView(VIEW.MAIN)
        this.button_login = this.panel.getChildByName("button_login").getComponent(cc.Button);
        this.Label = this.button_login.node.getChildByName("Background").getChildByName("Label").getComponent(cc.Label);
        this.button_login.node.on(cc.Node.EventType.TOUCH_END, this.loginHandler, this);
    },

    loginHandler: function loginHandler() {
        ViewMgr.showView(VIEW.MAIN);
    }

});

cc._RF.pop();